<template>
  <RouterView />

  <van-tabbar
    v-model="active"
    active-color="orange"
    :route="true"
    :placeholder="true"
  >
    <van-tabbar-item icon="home-o" to="/home/main">首页</van-tabbar-item>
    <van-tabbar-item icon="apps-o" to="/home/classify">分类</van-tabbar-item>
    <van-tabbar-item icon="shopping-cart-o" to="/home/cart">
      购物车
    </van-tabbar-item>
    <van-tabbar-item icon="contact-o" to="/home/mine">我的</van-tabbar-item>
  </van-tabbar>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>
